package net.aizhuoyue.controller;

import java.util.Date;
import java.util.UUID;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import net.aizhuoyue.entity.User;
@RestController
public class HelloWordController4 {
	@RequestMapping("/entity")
	public User UserDemo() {
		User user=new User();
		user.setId(UUID.randomUUID().toString());
		user.setCreatetime(new Date());
		user.setUsername("张三");
		return user;
	}
}
